class NameValueModel {
  var name;
  var value;
  var number;

  NameValueModel({this.name, this.value, this.number});

  NameValueModel.fromJson(Map<String, dynamic> json) {
    name = json['name'];
    value = json['value'];
    number = json['number'] != null ? json['number'] : 0;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['name'] = this.name;
    data['value'] = this.value;
    data['number'] = this.number;
    return data;
  }
}
